	function initEcharts(echartData) {
	var dom = document.getElementById("basic-Pie");
    var bpChart = echarts.init(dom);
    var app = {};
    option = null;
    option = { 
        color: ['red','#26dad2' ],
        tooltip : {
            trigger: 'item',
            formatter: "{a} <br/>({d}%)"
          
        },
        legend: {
            orient : 'vertical',
           
            data:['sorce','chid','Affiliate','AD','Search']
        },
        calculable : true,
        series : [
            {
                name:'比率',
                type:'pie',
                radius : '55%',
                center: ['50%', '50%'],
                data:[
                    {value:echartData.ChiDao, name:'迟到率'},
                    {value:echartData.ChuQin, name:'出勤率'}
                ]
            }
        ]
    };

    if (option && typeof option === "object") {
        bpChart.setOption(option, false);
    }
 
    /**
     * Resize chart on window resize
     * @return {void}
     */
    window.onresize = function() {
        
        bpChart.resize();
       
    };
 
}